package com.mybatisplus.sunpineshop.works.mapper;

import com.mybatisplus.sunpineshop.works.entity.Role;
import com.mybatisplus.sunpineshop.works.entity.SUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
//import org.springframework.security.core.userdetails.UserDetails;
//import org.springframework.security.core.userdetails.UsernameNotFoundException;
//import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2021-02-25
 */
@Mapper
public interface SUserMapper extends BaseMapper<SUser> {

    SUser loadUserByUsername(String userName);
    List<Role> getUserRolesByUid(Long userId);

}
